<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    <!-- iphone safari -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes" /> 
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />       
    <meta content="telephone=no" name="format-detection" /> 

    <!--[if lt IE 8]>
    <link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->clientScript->minScriptCreateGroup(array(Yii::app()->request->baseUrl.'/css/ie.css')); ?>" />
    <![endif]-->
    <!--[if lt IE 9]>
    <script type="text/javascript" src="<?php echo Yii::app()->clientScript->minScriptCreateGroup(array(Yii::app()->request->baseUrl.'/js/css3-mediaqueries.js')); ?>"></script>
　　<![endif]-->

    <?php 
    Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/screen-min.css' , "screen" );
    Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/portal.css' , "screen" );
    Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/portal-mobile.css' , "screen and (max-width:799px) and (min-width:321px)");
    Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/portal-mobile-320.css' , "screen and (max-width:320px) ,screen and (device-aspect-ratio: 2/3) , screen and (device-aspect-ratio: 40/71)");
    ?>

</head>

<body> 
<div id="appLoading">
    <div id="appLoadingIndicator">
        <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/admin/loading.gif">
    </div>
</div>

<div class="container" id="page">

    <div id="header">
        <div id="logo"><img src="<?php echo Yii::app()->request->baseUrl.$this->logo; ?>" /></div>
    </div><!-- header -->

    <div id="mainmenu">
     
    </div><!-- mainmenu -->
 

    <?php echo $content; ?>

    <div class="clear"></div>

    <div id="footer">
        Copyright &copy; <?php echo date('Y'); ?> by 123Free v<?php echo Yii::app()->params['version']; ?><br/>
        All Rights Reserved.
    </div><!-- footer -->

</div><!-- page --> 

</body>
</html>
